package edu.study.user.api;

import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.study.api.common.dto.BaseRespDto;
import edu.study.api.common.dto.RespDto;
import edu.study.user.api.dto.RoleUserDto;
import edu.study.user.api.req.roleuser.RoleUserReq;
import edu.study.user.api.req.roleuser.QueryRoleUserReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 1.要么没有入参，要么封装成req对象
 * 2.返回类型：BaseRespDto RespDto<T> PageRespDto<T> 三种
 */
@RequestMapping("/api/user/roleUserApi")
@Api(value = "/api/user/roleUserApi", tags = { "角色用户相关接口-1.0" })
public interface RoleUserApi {
	
	@ApiOperation(value = "新增角色用户")
    @RequestMapping(value = "addRoleUser", method = {RequestMethod.POST})
    BaseRespDto addRoleUser(@RequestBody RoleUserReq req);
    
    @ApiOperation(value = "删除角色用户")
    @RequestMapping(value = "deleteRoleUser", method = {RequestMethod.POST})
    BaseRespDto deleteRoleUser(@RequestBody RoleUserReq req);
    
    @ApiOperation(value = "修改角色用户")
    @RequestMapping(value = "modifyRoleUser", method = {RequestMethod.POST})
    BaseRespDto modifyRoleUser(@RequestBody RoleUserReq req);
	
    @ApiOperation(value = "查询角色用户列表")
    @RequestMapping(value = "queryRoleUserList", method = {RequestMethod.POST})
    RespDto<List<RoleUserDto>> queryRoleUserList(@RequestBody QueryRoleUserReq req);
}
